#include "cpenguin.h"

#include <buola/image/cimage.h>
#include <buola/image/cgc.h>

namespace buola { namespace bdesktop {

CPenguin::CPenguin()
    :   mImage(nullptr)
{
}

CPenguin::~CPenguin()
{
}

double CPenguin::GetWidth()
{
    return 35;
}

void CPenguin::Draw(CGC *pGC)
{
    if(!mImage)
    {
        mImage=CImage::GetURL(CURL::GetHome()+"penguin.png");
    }
    
    pGC->DrawImage(CPoint(mPos.l+10,mPos.t),mImage);
}

void CPenguin::OnClick(gui::CMouseEvent*)
{
}

/*namespace bdesktop*/ } /*namespace buola*/ }
